import { createApp } from 'vue'
// 引入css
import '@/style/reset.scss'
import './style.css'
// 引入首页组件
import App from '@/App.vue'
//引入全局组件
import HospitalTop from '@/components/hospital_top/intex.vue'
import HospitalBottom from '@/components/hospital_bottom/index.vue'
//引入路由器router
import {router} from '@/router/index'
//引入ElementPlus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// el国际化配置
import zhCn from 'element-plus/es/locale/lang/zh-cn'
const app = createApp(App)

// 引入图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }

app.component('HospitalTop',HospitalTop)
app.component('HospitalBottom',HospitalBottom)

app.use(router)
app.use(ElementPlus,{
  locale: zhCn,
})
app.mount('#app')
